'use strict';
/**
 * Created by FreezeSoul on 2015/11/2.
 */
define([
        'angular',
        'app/modules/index/define'
    ],
    function(angular) {
        angular.module('ad.index')
            .filter('toBindingDetails', function() {
                return function(serices) {
                    var name = "";
                    var push = 0;
                    if(serices && serices.DataSetCode){
                        name = serices.DataSetCode;
                    }
                    if(serices && serices.PushFrequency){
                        push = serices.PushFrequency;
                    }
                    return "数据集编码:" + (name == ""?"无":name) + " 推送频率:" + (push == 0? "首次":"每" + push + "分钟");;
                };
            });
    });